<div id="view">
	<br/>
	<% form_for :datasheet, :url => datasheets_path, :html => { :multipart => true } do |f| %>
		<fieldset>
			
			<legend>Upload Datasheet for "<%= @page.name %>"</legend>
			
			<p><%= error_messages_for :datasheet %></p>
			
			<p>
				<label for="datasheet">Browse for Datasheet</label>
				<br/>
				<%= f.file_field :uploaded_data, :class => :input_line %>
			</p>
			
			<p>
				<label for="name">Name (required)</label>
				<br/>
				<%= f.text_field :name, :class => :input_line %>
			</p>
			
		  <%= hidden_field_tag :page, @page.id %>
			
	  	<ul class="right">
				<li class="horizontal"><%= link_to "cancel", :controller => "pages", :action => :edit, :id => @page %></li>
				<li class="horizontal">|</li>
		    <li class="horizontal"><%= submit_tag "Ok" %></li>
		  </ul>
			
			<br/>
		
		</fieldset>
	<% end %>
	<br/>
</div>